package com.shixj.ef.vo;

import org.jsoup.nodes.Document;

/**
 * Created by shixj on 2018/1/15.
 */
public class FetchResult {
    private Document document;
    private String url;

    public Document getDocument() {
        return document;
    }

    public void setDocument(Document document) {
        this.document = document;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public FetchResult() {
    }
    public static FetchResult build(FetchRequest request,Document document){
        FetchResult fetchResult=new FetchResult();
        fetchResult.setDocument(document);
        fetchResult.setUrl(request.getFetchUrl());
        return fetchResult;
    }
}
